home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 47
/
Amiga Format AFCD47 (Issue 131, Xmas 1999).iso
/
-serious-
/
emulation
/
electrostatic
/
hidden
/
install atari 2600 game
< prev
next >
Wrap
Text File
|
1999-10-04
|
2KB
|
106 lines
; File: Install Atari 2600 Game
; Author: Neil Cafferkey
; =============================
; A script to translate an Atari 2600 game.
;
; $VER: "Install Atari 2600 Game" 1.1 (17.6.99)
; Set constants
(set #kick-too-low-msg "Kickstart 3.0 or greater is required.")
(set #askdir-prompt "In which drawer should %s be installed?")
(set #ask-name-prompt
"Please enter the name of the Atari 2600 game you want to translate:"
)
(set #ask-name-help @askstring-help)
(set #translating-msg "Translating game...")
(set #disassembly-error-msg
"An error occurred during the disassembly phase."
)
(set #assembly-error-msg
"An error occurred during the assembly phase."
)
(set #exit-msg
(cat "Installation complete!\n"
"%s can be found in your \"%s\" drawer (or partition)."
)
)
; Check Kickstart version
(if (< (/ (getversion) 65536) 39)
(abort #kick-too-low-msg)
)
; Ask for the name of the game
(set #app-name (askstring (prompt #ask-name-prompt) (help #ask-name-help)))
(set @app-name #app-name)
; Ask where to install to
(set #default-dest
(askdir
(prompt (#askdir-prompt @app-name))
(default @default-dest)
(help @askdir-help)
(disk)
)
)
(set @default-dest #default-dest)
; Translate Atari 2600 program
(working #translating-msg)
(if
(<> 0
(run
("Stack 100000\nElectrostatic \"%s\""
(tackon @app-name "program")
)
)
)
(abort #disassembly-error-msg)
)
; Assemble Atari 2600 program
(if
(<> 0
(run
("GigaPhxAss QUIET \"%s\" TO \"%s\""
@app-name
(tackon @default-dest @app-name)
)
)
)
(abort #assembly-error-msg)
)
; Copy an icon for the translated program
(copyfiles
(source "Icons/Game Icon.info")
(dest @default-dest)
(newname (cat @app-name ".info"))
(nogauge)
(help @copyfiles-help)
)
; Exit the script
(exit (#exit-msg @app-name @default-dest) (quiet))
; Make sure the standard welcome screen never appears
(welcome)